import './assets/init.css'
// 引入初始化样式

import { createApp } from 'vue'
import { createPinia } from 'pinia'


import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import elementIcon from '@/plugins/icon.js'
import echarts from './plugins/echarts'

import App from './App.vue'
import router from '@/router/index.js'


const app = createApp(App)

// 1. 创建pinia实例
const pinia = createPinia()

// 2. 添加pinia持久化插件
pinia.use(piniaPluginPersistedstate)

// 3. 挂载pinia实例
app.use(pinia)

// 使用字体图标库
app.use(elementIcon)

app.use(router)

app.use(echarts)

app.mount('#app')
